#ifndef TC_NUMERIC_HH
#define TC_NUMERIC_HH

/** \file Numeric.hh 
 * Global declarations for the Numeric Algorithms library.
 *
 * (c) Copyright Semih Cemiloglu
 * All rights reserved, see COPYRIGHT file for details.
 *
 * $Id: NA.hh 119 2006-06-21 04:57:25Z semihc $
 *
 *
 */


namespace TC {

//! The value of Pi
const double Pi = 3.1415926535897932384626433832795;


//! Linear congruential generator for random numbers
//! http://en.wikipedia.org/wiki/Park-Miller_random_number_generator
inline unsigned long LCG_random(unsigned long a)
{
  return (a * 279470273UL) % 4294967291UL;
}


} // end namespace


#endif /* Include guard */
